use std::sync::atomic::AtomicBool;

static STATE: AtomicBool = AtomicBool::new(false);

#[flutter_rust_bridge::frb(sync)]
pub fn get_state() {
    STATE.load(std::sync::atomic::Ordering::SeqCst);
}


#[flutter_rust_bridge::frb(sync)]
pub fn up_state(state: bool) {
    STATE.store(state, std::sync::atomic::Ordering::SeqCst);
}